package com.hero.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hero.content.model.dto.CoursePreviewDto;
import com.hero.content.model.pojo.CoursePublish;

/**
 * @author Mr.M
 * @version 1.0
 * @description 课程预览、发布接口
 * @date 2022/9/16 14:59
 */
public interface CoursePublishService extends IService<CoursePublish> {


    /**
     * @param courseId 课程id
     * @return com.xuecheng.content.model.dto.CoursePreviewDto
     * @description 获取课程预览信息
     */
    public CoursePreviewDto getCoursePreviewInfo(Long courseId);


    void commitAudit(Long courseId);


    void auditCourse(Long courseId, Integer successType);

    void publish(Long courseId);
}